<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <input type="hidden" name="row[rules]" value="{$row.rules}" />
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-3">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    {if $row['id']!=1}
    <div class="form-group">
        <label for="c-discount" class="control-label col-xs-12 col-sm-3">{:__('优惠折扣')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-discount" class="form-control" name="row[discount]" type="number"
                value="{$row.discount|htmlentities}">
        </div>
    </div>
    {/if}
    {if $row['id']==2|| $row['id']==3}

    <div class="form-group">
        <label for="c-first_direct_thrust" class="control-label col-xs-10 col-sm-3">{:__('首购直推（%）')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-first_direct_thrust" class="form-control" name="row[first_direct_thrust]" type="number"
                value="{$row.first_direct_thrust|htmlentities}">
        </div>
    </div>
    {/if}


    {if $row['id']!=1&&$row['id']!=5}

    <div class="form-group">
        <label for="c-direct_thrust" class="control-label col-xs-12 col-sm-3">直推（%）:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-direct_thrust" class="form-control" name="row[direct_thrust]" type="number"
                value="{$row.direct_thrust|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-interposition" class="control-label col-xs-12 col-sm-3">间推（%）:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-interposition" class="form-control" name="row[interposition]" type="number"
                value="{$row.interposition|htmlentities}">
        </div>
    </div>
    {/if}
    {if $row['id']==3||$row['id']==4}
    <div class="form-group">
        <label for="c-parallel_grade" class="control-label col-xs-12 col-sm-3">平级（%）:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-parallel_grade" class="form-control" name="row[parallel_grade]" type="number"
                value="{$row.parallel_grade|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-sales_award_month" class="control-label col-xs-12 col-sm-3">销售奖（月结）（%）:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sales_award_month" class="form-control" name="row[sales_award_month]" type="number"
                value="{$row.sales_award_month|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-sales_award_salse_month" class="control-label col-xs-12 col-sm-3">销售奖（月结销量）条件:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sales_award_salse_month" class="form-control" name="row[sales_award_salse_month]" type="number"
                value="{$row.sales_award_salse_month|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-sales_award_money_month" class="control-label col-xs-12 col-sm-3">销售奖（月结金额）条件:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sales_award_money_month" class="form-control" name="row[sales_award_money_month]" type="number"
                value="{$row.sales_award_money_month|htmlentities}">
        </div>
    </div>

    {/if}
    {if $row['id']==4}
    <div class="form-group">
        <label for="c-dividend" class="control-label col-xs-12 col-sm-3">分红奖（%）:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dividend" class="form-control" name="row[dividend]" type="number"
                value="{$row.dividend|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-sales_award_year" class="control-label col-xs-12 col-sm-3">销售奖（年结）（元）:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sales_award_year" class="form-control" name="row[sales_award_year]" type="number"
                value="{$row.sales_award_year|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-sales_award_salse_year" class="control-label col-xs-12 col-sm-3">销售奖（年结销量）条件:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sales_award_salse_year" class="form-control" name="row[sales_award_salse_year]" type="number"
                value="{$row.sales_award_salse_year|htmlentities}">
        </div>
    </div>

    {/if}
    {if $row['id']==5}
    <div class="form-group">
        <label for="c-team_award_month" class="control-label col-xs-12 col-sm-3">团队奖（月结）（%）:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-team_award_month" class="form-control" name="row[team_award_month]" type="number"
                value="{$row.team_award_month|htmlentities}">
        </div>
    </div>
    {/if}

    <hr>
    <div class="form-group">
        <h4 class="control-label col-xs-12 col-sm-3">升级条件</h4>
    </div>
    {if $row['id']==3}
  
    <div class="form-group">
        <label for="c-first_num" class="control-label col-xs-12 col-sm-3">{:__('直推人数')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-first_num" class="form-control" name="row[first_num]" type="number"
                value="{$row.first_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-two_num" class="control-label col-xs-12 col-sm-3">{:__('间推人数')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-two_num" class="form-control" name="row[two_num]" type="number"
                value="{$row.two_num|htmlentities}">
        </div>
    </div>
    {/if}
    {if $row['id']==4}
    <div class="form-group">
        <label for="c-team_num" class="control-label col-xs-12 col-sm-3">{:__('团长人数')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-team_num" class="form-control" name="row[team_num]" type="number"
                value="{$row.team_num|htmlentities}">
        </div>
    </div>

    {/if}
    {if $row['id']==5}
    <div class="form-group">
        <label for="c-manager_num" class="control-label col-xs-12 col-sm-3">{:__('董事人数')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-manager_num" class="form-control" name="row[manager_num]" type="number"
                value="{$row.manager_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-team_size" class="control-label col-xs-12 col-sm-3">{:__('团队人数')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-team_size" class="form-control" name="row[team_size]" type="number"
                value="{$row.team_size|htmlentities}">
        </div>
    </div>
    {/if}

    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Permission')}:</label>
        <div class="col-xs-12 col-sm-8">
            <span class="text-muted"><input type="checkbox" name="" id="checkall" /> <label for="checkall"><small>{:__('Check all')}</small></label></span>
            <span class="text-muted"><input type="checkbox" name="" id="expandall" /> <label for="expandall"><small>{:__('Expand all')}</small></label></span>

            <div id="treeview"></div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
            {/foreach}
            </div>

        </div>
    </div> -->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-3"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
<script>
    var nodeData = {: json_encode($nodeList); };
</script>